c programming for matrix multiplication